package family.yaongteam.connectlines;

public class PointConfig {

	private static String[] number = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"};
	private static String[] hangul = {"가","나","다","라","마","바","사","아","자","차","카","타","파","하"};
	private static String[] alphabet_big = {"A", "B", "C", "D", "E", "F"};
	private static String[] alphabet_small = {"A", "B", "C", "D", "E", "F"};
	
	public static String getPointCharacter(PointNumberType type, int index){
		String pointCharacter = "";
		String[] arr = null;
		if(type == PointNumberType.NUMBER){
			arr = number;
		} else if(type == PointNumberType.HANGUL){
			arr = hangul;
		} else if(type == PointNumberType.ALPHABET_BIG){
			arr = alphabet_big;
		} else if(type == PointNumberType.ALPHABET_SMALL){
			arr = alphabet_small;
		}
		while(index >= arr.length){
			index = index - arr.length;
		}
		pointCharacter = arr[index];
		return pointCharacter;
	}
}
